﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Cloud.Dto;
using Cloud.Dto.Sys;

namespace Cloud.Service.Account
{
    public interface IAccountService
    {
        ServiceReturnDto<List<SysPermissionDto>> GetCurrentUserPermission(int loginId, bool isAdmin);
        ServiceReturnDto<SysUserDto> Login(string name, string password);
        Task<ServiceReturnDto> ModifyPassword(ModifyPasswordDto model);
    }
}